const express = require('express')

const controller = require('../controllers/read')

const router = express.Router()

router.route('/reads')
  .post(
    controller.create)
  .get(controller.index)

router.route('/reads/:id')
  .get(controller.show)
  .put(controller.update)
  .delete(controller.delete)

module.exports = router
